import Axios from "axios";
import qs from "qs";

const request = function(action,param){
    let actions = action.split("/");
    let url = window.sysinfo.url;
    let params = {
        pages:actions[0],
        doing:actions[1]
    };
    let send_data = Object.assign(params,param);
    return Axios.post(url,qs.stringify(send_data));
};

export default request;
